package com.haixiaoke.saas.repository.mapper;

import com.haixiaoke.saas.repository.pojo.HouseRecommendation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 公寓推荐设置Mapper接口
 * 
 * @author haixiaoke
 * @date 2023-04-11
 */
@Mapper
public interface HouseRecommendationMapper {
    /**
     * 查询公寓推荐设置
     * 
     * @param recommendationId 公寓推荐设置主键
     * @return 公寓推荐设置
     */
    HouseRecommendation selectHouseRecommendationByRecommendationId(Long recommendationId);

    /**
     * 查询公寓推荐设置列表
     * 
     * @param houseRecommendation 公寓推荐设置
     * @return 公寓推荐设置集合
     */
    List<HouseRecommendation> selectHouseRecommendationList(HouseRecommendation houseRecommendation);

    /**
     * 新增公寓推荐设置
     * 
     * @param houseRecommendation 公寓推荐设置
     * @return 结果
     */
    int insertHouseRecommendation(HouseRecommendation houseRecommendation);

    /**
     * 修改公寓推荐设置
     * 
     * @param houseRecommendation 公寓推荐设置
     * @return 结果
     */
    int updateHouseRecommendation(HouseRecommendation houseRecommendation);

    /**
     * 删除公寓推荐设置
     * 
     * @param recommendationId 公寓推荐设置主键
     * @return 结果
     */
    int deleteHouseRecommendationByRecommendationId(Long recommendationId);

    /**
     * 批量删除公寓推荐设置
     * 
     * @param recommendationIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteHouseRecommendationByRecommendationIds(Long[] recommendationIds);

    /**
     * 修改房屋状态
     * @param houseRecommendation
     * @return
     */
    int updateState(HouseRecommendation houseRecommendation);
}
